package org.example.daojishi;

import java.io.Serializable;
import java.util.Date;

/**
 * @ProjectName: ****
 * @Package: ***.**.utils.holidays
 * @ClassName: ChinaDate
 * @Author: cg
 * @Date: 2022/1/18  13:55
 * @Description: 定义一个中国日期类
 */
public class ChinaDate implements Serializable {
   

    /**
     * 公历时间
     */
    private Date solarDate;
    /**
     * 农历日
     */
    private String lunar;
    /**
     * 公历日
     */
    private String solar;
    /**
     * 是否是 休
     */
    private boolean isVacation = false;
    /**
     * 如果是 休情况下的假期名字
     */
    private String vacationName = "工作日";

    private String vacationType="0";//类型

    private String practicalMonth;//实际月份

    private String formatDate;//yyyyMMdd格式日期
    /**
     * 是否是 班
     */
    private boolean isWorkFlag = false;
    private boolean isSaturday = false;
    private boolean isSunday = false;

    public ChinaDate() {
   
    }

    public ChinaDate(Date solarDate, String lunar, String solar, boolean isVacation, String vacationName, String vacationType, String practicalMonth, String formatDate, boolean isWorkFlag, boolean isSaturday, boolean isSunday) {
   
        this.solarDate = solarDate;
        this.lunar = lunar;
        this.solar = solar;
        this.isVacation = isVacation;
        this.vacationName = vacationName;
        this.vacationType = vacationType;
        this.practicalMonth = practicalMonth;
        this.formatDate = formatDate;
        this.isWorkFlag = isWorkFlag;
        this.isSaturday = isSaturday;
        this.isSunday = isSunday;
    }

    public String getVacationName() {
   
        return vacationName;
    }

    public void setVacationName(String vacationName) {
   
        this.vacationName = vacationName;
    }

    public String getVacationType() {
   
        return vacationType;
    }

    public void setVacationType(String vacationType) {
   
        this.vacationType = vacationType;
    }

    public String getPracticalMonth() {
   
        return practicalMonth;
    }

    public void setPracticalMonth(String practicalMonth) {
   
        this.practicalMonth = practicalMonth;
    }

    public String getFormatDate() {
   
        return formatDate;
    }

    public void setFormatDate(String formatDate) {
   
        this.formatDate = formatDate;
    }

    public Date getSolarDate() {
   
        return solarDate;
    }

    public void setSolarDate(Date solarDate) {
   
        this.solarDate = solarDate;
    }

    public String getLunar() {
   
        return lunar;
    }

    public void setLunar(String lunar) {
   
        this.lunar = lunar;
    }

    public String getSolar() {
   
        return solar;
    }

    public void setSolar(String solar) {
   
        this.solar = solar;
    }

    public boolean isVacation() {
   
        return isVacation;
    }

    public void setVacation(boolean vacation) {
   
        isVacation = vacation;
    }

    public boolean isWorkFlag() {
   
        return isWorkFlag;
    }

    public void setWorkFlag(boolean workFlag) {
   
        isWorkFlag = workFlag;
    }

    public boolean isSaturday() {
   
        return isSaturday;
    }

    public void setSaturday(boolean saturday) {
   
        isSaturday = saturday;
    }

    public boolean isSunday() {
   
        return isSunday;
    }

    public void setSunday(boolean sunday) {
   
        isSunday = sunday;
    }

      @Override
    public String toString() {
   
        return "ChinaDate{" +
                "solarDate=" + solarDate +
                ", lunar='" + lunar + '\'' +
                ", solar='" + solar + '\'' +
                ", isVacation=" + isVacation +
                ", vacationName='" + vacationName + '\'' +
                ", vacationType='" + vacationType + '\'' +
                ", practicalMonth='" + practicalMonth + '\'' +
                ", formatDate='" + formatDate + '\'' +
                ", isWorkFlag=" + isWorkFlag +
                ", isSaturday=" + isSaturday +
                ", isSunday=" + isSunday +
                '}';
    }
}

